﻿#pragma once
#include "afxdialogex.h"


// CPopDelay 对话框

class CPopDelay : public CDialogEx
{
	DECLARE_DYNAMIC(CPopDelay)

public:
	CPopDelay(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CPopDelay();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_POP_DELAY };
#endif

	int gSlowTime;
	uint8_t gDelayValue[8];
	void ShowRegister();
	void SetDelayValue(int slider, int edit);
	int ShowSlider(uint8_t value, int slider, int edit);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnNMCustomdrawDelayCe(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomdrawDelaySl(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomdrawDelaySr(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomdrawDelayBl(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomdrawDelayBr(NMHDR* pNMHDR, LRESULT* pResult);
};
